package com.starleague.entity.android;

import java.util.List;

import android.view.LayoutInflater;

import com.starleague.common.android.AbstractViewBindableListAdapter;
import com.starleague.entity.IEntity;

public class EntityArrayAdapter<ENTITY extends IEntity>
        extends AbstractViewBindableListAdapter<ENTITY, AbstractEntityView>
{
    public EntityArrayAdapter(LayoutInflater inflater,
                              int resource,
                              List<ENTITY> entityList)
    {
        super(inflater, resource, entityList);
    }

    @Override
    protected void bind(ENTITY entity,
                        AbstractEntityView itemView)
    {
        itemView.setEntity(entity);
    }
}
